<?php
	include_once("db/UserDAO.inc");
	include_once("db/CaseType.inc");
	include_once("db/AuditLogs.inc");
	
	$id = $_REQUEST["id"];
	
	AuditLogs::insertLog(User::getUser($_SESSION["id"])->username, 'admin - delete case type', CaseType::getCaseType($id)->name);
	CaseType::deleteCaseType($id);
	
	header("Location: .?action=viewCaseType");
?>